#include <vector>
#include "Calculator.h"

using namespace std;

void main()
{
	Calculator calc;
	string input;
	cout << "Enter expression you wish calculated. Enter 'quit' to stop the program." << endl;
	cout << "Calculator only supports values [0..9] and does not support unary operators." << endl;
	while(input != "quit")
	{
		cout << "Expression: ";
		getline(cin, input);
		if(input != "quit")
		{
			try
			{
				cout << "Result: " << calc.Calc(input) << endl;
			}
			catch(std::invalid_argument e)
			{
				cout << e.what() << endl;
			}
		}
	}
}